/**
 * Copyright (c) 2019-2020, https://api.iot.10086.cn/(https://gitee.com/cmcc-iot-api/iot-card-open-core/).
 */

package cn.iot.card.open.terminal.warpper;

import cn.iot.card.open.constants.factory.ConstantFactory;
import cn.stylefeng.roses.core.base.warpper.BaseControllerWrapper;
import cn.stylefeng.roses.kernel.model.page.PageResult;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;
import java.util.Map;

/**
 * 短信上行列表包装类
 *
 * @author cmcc-iot-api
 * @date 20201110 14:12:19
 */
public class SmsReceiveWrapper extends BaseControllerWrapper {

    public SmsReceiveWrapper(Map<String, Object> single) {
        super(single);
    }

    public SmsReceiveWrapper(List<Map<String, Object>> multi) {
        super(multi);
    }

    public SmsReceiveWrapper(Page<Map<String, Object>> page) {
        super(page);
    }

    public SmsReceiveWrapper(PageResult<Map<String, Object>> pageResult) {
        super(pageResult);
    }

    @Override
    protected void wrapTheMap(Map<String, Object> map) {
        map.put("smsFmtName", ConstantFactory.me().getMsgFmtName(map.get("smsFmt").toString()));
        map.put("tpUdhiName", ConstantFactory.me().getTpUdhiName(map.get("tpUdhi").toString()));
    }
}
